package com.agui.exceptionDemo.utils;

public class Utils {

    public static void divide(int one,int two){
        if(two == 0){
            throw new RuntimeException("两数相除，除数不能为0！");
        }else {

            System.out.println("---->>"+one/two);
        }
    }

    public static String divideS(int one, int two){
        if(two == 0){
            throw new RuntimeException("两数相除，除数不能为0！");
        }else {
            System.out.println("---->>"+one/two);
            return String.valueOf(one/two);

        }
    }

}
